package com.maolong.springbootstartpaycenter.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service
public class PayCenter {
    @RabbitListener(queues = "payQueue")
    public void receive(String message){
        System.out.println("支付中心收到消息："+message);
    }
}
